package com.mall.mymall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.mymall.dao.dto.querypage.AddressPageRequest;
import com.mall.mymall.dao.entity.Addresses;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;


public interface AddressesMapper  extends BaseMapper<Addresses> {

    Addresses getAddressesByNameAndUserId(@Param("address") String address,@Param("userId") Integer userId);

    IPage<Addresses> pageAddresses(Page<Addresses> page, @Param("userId") Integer userId);

    List<Addresses> findByUserId(Integer userId);
}
